Using Microsoft Word you can write your rules in plain English. You then format these rules with the styles provided on the Oracle Policy Modeling tab to enable them to be compiled into a format that can be used by the Oracle Determinations Engine.
Before you start writing rules, you need to change some of the default settings in Word.
Prepare Word for writing rules
Understand Oracle Policy Modeling format and structure
Some normal settings in Microsoft Word will interfere with rule creation by Oracle Policy Modeling, so you will need to make the following changes to Word settings:
In Tools | AutoCorrect Options | AutoCorrect tab (in Word 2003), or Word Options | Proofing | AutoCorrect Options | AutoCorrect tab (in Word 2007 and later):
In Tools | AutoCorrect Options | AutoFormat As You Type tab (in Word 2003), or Word Options | Proofing | AutoCorrect Options | AutoFormat As You Type tab (in Word 2007 and later):
Set the units of measurement to Centimeters and the Style Area Width to about 3cm – this will help you to see what is happening with the Oracle Policy Modeling styles.
For Word 2003:
For Word 2007 and later, the Show Styles button in the Document group of the Oracle Policy Modeling tab provides a shortcut to display the style area.
The settings to do this manually in Word 2007 and later can be found in Word Options | Advanced | Display:
TIPS:
Oracle Policy Modeling format is quite strict in order to maintain consistency and completeness of rules and to avoid logical ambiguity. In particular, styles and indentation play an important role in recognizing the meaning of rules. Indentation and styles are used to separate the conditions from the conclusion, and conditions of different levels from each other. Distinct conditions are separated onto different lines, and the placement of and and or between conditions has special significance.
Rules need to be marked up in Word using Oracle Policy Modeling styles in order to be recognized by the Oracle Policy Modeling compiler. The styles appear in the Oracle Policy Modeling toolbar and in the document templates which are attached to all Word documents created through Oracle Policy Modeling. Oracle Policy Modeling looks for these styles when parsing your rules to determine the various rule components. Each style has a unique style name and coloring to make it easy to identify. Text which is not in the Oracle Policy Modeling styles is ignored by the Oracle Policy Modeling compiler.
The rule below shows an example of the OPM styles that would be applied in Word using the Conclusion and Level styles on the Oracle Policy Modeling tab:
the claimant is eligible for living allowances if OPM - conclusion
the claimant is living alone and OPM - level 1
the claimant satisfies the age criteria OPM - level 1
the claimant satisfies the male age criteria OPM - level 2
the claimant is aged over 65 and OPM - level 3
the claimant is a man OPM - level 3
or OPM - level 2
the claimant satisfies the female age criteria OPM - level 2
the claimant is aged over 60 and OPM - level 3
the claimant is a woman OPM - level 3
To write a rule in Word: